#include <bits/stdc++.h>

using namespace std;

int main() {
    for(int i = 1;i <= 5000;i++) {
	system("make.exe");
	system("1.exe");
	system("1_bf.exe");
	if(system("fc 1.out 1_bf.out")) puts("WA"),exit(0);
	printf("%d\n",i);
    }
}
